import request from '@/utils/request'
import downloadService from "../utils/downloadService";

// 普通问答
export function aiChat(question) {
  return request({
    url: '/ai/chat',
    method: 'get',
    params: {userInput: question}
  })
}

// 文生图片
export function aiImage(question) {
  return request({
    url: '/ai/image',
    method: 'get',
    params: {userInput: question}
  })
}

//多模态（文本+图片）
export function multiModel(multiModelDto) {
  return request({
    url: '/ai/multi',
    method: 'post',
    data: multiModelDto
  })
}


//文生语音
export function aiAudioDownload(question) {
  return downloadService({
    url: '/ai/audioDownload',
    method: 'get',
    params: {userInput: question}
  })
}


